ngl: Improve shortcuts for shadow nodes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Sep 2021 12:04:09 +0000 (08:04 -0400)
committerBenjamin Otte <otte@redhat.com>
Thu, 16 Sep 2021 21:59:37 +0000 (23:59 +0200)
commit9e14de25345039318bdd0a1f980139381bfae188
treecce6f6a5d56cf100a1a07f114569d9138f6628b1
parent62954a033877d484b071f69459eda9c688063fa0
ngl: Improve shortcuts for shadow nodes

For shadow nodes, we try pretty hard to avoid
rendering shadows, and and we have a shortcut
that just renders text offset, but we can try
harder to do nothing - if the text is offset
by zero, we don't need to draw it at all.
gsk/ngl/gsknglrenderjob.c